// 播放器模块
import mutations from './mutations'
import * as actions from './actions'
import * as getters from './getters'
import {
  playMode
} from 'common/js/config'
const player = {
  namespaced: true,
  // 模块内容（module assets）
  state() {
    return {
      // 播放状态
      playing: false,
      // 全屏
      fullScreen: false,
      // 播放列表
      playList: [],
      // 记录循环播放模式的播放列表
      sequenceList: [],
      // 播放模式 1 2 3
      mode: playMode.sequence,
      // 当前播放的下标
      currentIndex: -1
    }
  },
  getters,
  actions,
  mutations
}
export default player
